<?php


namespace App\Models;


use Illuminate\Database\Eloquent\Model;

class TestTable extends Model
{
    protected $table = "test_table";
    public $timestamps = false;
    public function __construct(array $attributes = [])
    {
        parent::__construct($attributes);

        global $gameArea; if (!$gameArea) $gameArea = 0;
        $this->setConnection('test_'.$gameArea);
        echo "model connetct " .  'test_'.$gameArea . "\n";

    }

}
